
function PageReservationController($scope, FicheManager) {
	var sejourId = parseInt(document.querySelector("#sejourId").value);    

	$scope.lienRedirection = null;

	$('#pageReservationModal').on('shown.bs.modal', function() {
		$scope.scFiche = new FicheManager();
        $scope.scFiche.retourner_adresse_page_redirection( sejourId ).then( function(e) {

        	$scope.lienRedirection = e.data;
		});
	});

	$scope.redirection = function() {
    	setTimeout(function() {
    		$scope.annuler();
		}, 500);
	}

	$scope.annuler = function() {
		 $('#pageReservationModal').modal('hide')
	}

}

